from django.conf.urls import url
from . import views

urlpatterns = [

    url(r'^reverse_demo/$', views.reverse_demo),

    url(r'^jsonResponse_demo/$', views.jsonResponse_demo),

    #构建响应对象基本使用
    url(r'^response_demo/$', views.response_demo),

    url(r'^weather2/([a-z]+)/(\d{4})/$', views.weather2),

    # url(r'^weather2/(?P<city>[a-z]+)/(?P<year>\d{4})/$', views.weather2),

    url(r'^get_query_param/$', views.get_query_param),

    url(r'^get_body_form/$', views.get_body_form),

    url(r'^get_body_json/$', views.get_body_json),

    url(r'^cookie_demo/$', views.cookie_demo),

    url(r'^cookie_read/$' , views.cookie_read),

    url(r'^session_demo/$', views.session_demo),

    url(r'^session_demo_get/$', views.session_demo_get),

]